package org.realogic.cfm.util;

import java.util.UUID;

public final class LongUUID {

	public static long uuidOfLang() {
		return UUID.randomUUID().getMostSignificantBits();
	}

	public static long uuidOfAbsLongs() {
		while (true) {
			long r = uuidOfLang();
			if (r > 0L) {
				return r;
			}
		}
	}

}
